The Dreamweaver JavaScript API > Behavior functions > dreamweaver.behaviorInspector.getBehaviorAt()

 

dreamweaver.behaviorInspector.getBehaviorAt()

Availability

Dreamweaver 3.0

Description

Gets the event/action pair at the specified position in the Behaviors panel.

Arguments

positionIndex

Returns

An array of two items:

An event handler
A function call or JavaScript statement

Enabler

None.

Example

Because positionIndex is a zero-based index, if the Behaviors panel displays the list shown, a call to dw.behaviorInspector.getBehaviorAt(2) returns an array containing two strings: "onMouseOver" and "MM_changeProp('document.moon','document.moon','src','sun.gif','IMG')".